package com.one.blocks.rbac.controller.vo;

import com.one.blocks.mvc.controller.valid.Custom;
import com.one.blocks.rbac.constant.RbacRoleTypeConstant;
import com.one.blocks.rbac.controller.valid.RoleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Set;

/**
 * @author linfuxin Created on 2022-04-27 10:00:49
 */
@Data
public class SysRoleGrantMenuVo implements Serializable {

    @ApiModelProperty(value = "授权目录ID集合")
    private Set<Integer> menuIds;

    @ApiModelProperty(value = "指定角色id")
    @NotNull
    @RoleType(value = {RbacRoleTypeConstant.COMMON}, groups = {Custom.class})
    private Integer roleId;
}
